﻿@model IEnumerable<Article>
@{
    ViewData["Title"] = "搜索结果";
}
@section PYhead{
    <link href="~/css/AR-Index.css" type="text/css" rel="stylesheet">
    <style>
        .itm-son-r {
            color: black;
        }
    </style>
}
<div id="topbar-ar">
    <a asp-action="Index" asp-controller="Home"><p class="top-l" style=" color: black;">返回首页</p></a>
    <partial name="_LoginPartical" />
</div>
<div id="search-bar">
    <a asp-action="Index" asp-controller="Home" ><p class="top-l" style=" color: black;">返回首页</p></a>
    <partial name="_LoginPartical" />
</div>
<p style="text-align: center; font-size:40px">搜索结果</p>
<div id="search-cont">
    <div id="searcher-son">
        <form asp-action="ArticleSearch" asp-controller="Articles" method="post">
            <input class="search-in" name="searchString" placeholder="搜索你喜欢的内容" type="search">
            <input class="search-cli" value="搜索" type="submit">
        </form>
    </div>
</div>
<div id="ar-list">
    @foreach (var u in Model)
    {
        <div class="ar-son">
            <a asp-action="ArticleDetail" asp-route-id="@u.AId">
                <img class="ar-son-pic" src="@u.ArticlePicture">
                <div class="title-inf">
                    <p class="s-title">@u.Title</p><br />
                    <p class="s-intrduction">@u.Introduce</p>
                </div>
            </a>
        </div>
    }
</div>